

package cn.shengchao.examstar.member.acl.adaptes;

import cn.shengchao.examstar.member.acl.ports.repostories.IStudentRepository;
import cn.shengchao.examstar.member.infrastructure.dao.StudentDao;
import cn.shengchao.examstar.rpc.student.req.StudentQueryPage;
import cn.shengchao.examstar.rpc.student.res.StudentList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class StudentRepository implements IStudentRepository {

    @Autowired
    private StudentDao studentDao;

    @Override
    public List<StudentList> getStudentList(StudentQueryPage studentQueryPage) {
        return studentDao.getStudentList(studentQueryPage);
    }

    @Override
    public void changeStatus(Long studentId) {
        studentDao.changeStatus(studentId);
    }
}
